From 5cee2dafd8e2e76f7cc2a783102399822b5bb554 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 20 Oct 2009 08:43:27 +0100 Subject: [PATCH] xend: Cast oos flag to int before arithmetic. Signed-off-by: Keir Fraser --- tools/python/xen/xend/XendDomainInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 98214d92ce..bf3c396ea4 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2421,7 +2421,7 @@ class XendDomainInfo: s3_integrity = self.info['s3_integrity'] oos = self.info['platform'].get('oos', 1) - oos_off = 1 - oos + oos_off = 1 - int(oos) flags = (int(hvm) << 0) | (int(hap) << 1) | (int(s3_integrity) << 2) | (int(oos_off) << 3) -- 2.30.2